package br.com.caelum.jdbc.controle;

import java.sql.SQLException;

import br.com.caelum.jdbc.dao.LoginDao;

public class LoginControl {

		private LoginDao dao;

		public LoginControl(){
			dao = new LoginDao();
		}
		public boolean isAutentic(String usuario, String senha){
			try {
				return dao.isAutentic(usuario, senha);
			} catch (SQLException e) {
				e.printStackTrace();
			}
			return false;
		}
	}


